package com.eshopkeeper.provider.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.eshopkeeper.core.base.BaseProviderImpl;
import com.eshopkeeper.dao.sys.SysMenuBtnMapper;
import com.eshopkeeper.model.sys.SysMenuBtn;
import com.weibo.api.motan.config.springsupport.annotation.MotanService;

/**
 * Created by Administrator on 2017/8/30.
 */
@MotanService(basicService = "serviceBasicConfig")
public class SysMenuBtnProviderImpl extends BaseProviderImpl<SysMenuBtn> implements ISysMenuBtnProvider {

    @Autowired
    SysMenuBtnMapper sysMenuBtnMapper;
    @Override
    public List<Map<String, Object>> queryMenuBtnList(Map<String, Object> param) {
        return sysMenuBtnMapper.queryMenuBtnList(param);
    }

    @Override
    public void insertBtn(Map<String, Object> param) {
        sysMenuBtnMapper.insertBtn(param);
    }

    @Override
    public void updateBtn(Map<String, Object> param) {
        sysMenuBtnMapper.updateBtn(param);
    }

    @Override
    public void deleteBtn(Map<String, Object> param) {
        sysMenuBtnMapper.deleteBtn(param);
    }

    @Override
    public List<SysMenuBtn> getListBtnByrole(Long id) {
        return sysMenuBtnMapper.getListBtnByrole(id);
    }
}
